import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
import { pxToViewport } from "./plugins/pxto-viewport";

// https://vite.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    // Vite路径别名配置
    alias: {
      "@": path.resolve("./src"),
    },
  },
  css: {
    postcss: {
      plugins: [pxToViewport({ include: ["src/views/PxToViewport.vue"] })],
    },
  },
});
